package cn.edu.njnu.opengmpback.user.dao;

import cn.edu.njnu.opengmpback.user.entity.UserEntity;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends MongoRepository<UserEntity, String> {
    UserEntity findByEmail(String email);
    UserEntity findByUserId(String userId);
}
